package Lab02.Q7;

import java.util.Scanner;

public class starTower {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int num=in.nextInt();
        for (int i = 1; i <= num; i++) {
            if (i <= num / 2 + 1) {//2*i-1个*
                for (int j = 0; j < (num - 2 * i - 1) / 2 + 1; j++)
                    System.out.printf(" ");
                for (int j = 0; j < 2 * i - 1; j++)
                    System.out.printf("*");
                for (int j = 0; j < (num - 2 * i - 1) / 2 + 1; j++)
                    System.out.printf(" ");
            } else {
                for (int j = 0; j < i - num / 2 - 1; j++)
                    System.out.printf(" ");
                for (int j = 0; j < 2 * (num - i) + 1; j++)
                    System.out.printf("*");
                for (int j = 0; j < i - num / 2; j++)
                    System.out.printf(" ");
            }
            System.out.println("");
        }

    }
}
